package club.emergency.wechat.department.search;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create with IntelliJ IDEA
 * Project Name: wechat
 * Package Name: club.emergency.wechat.department.search
 * Date: 2019/3/23
 *
 * @author: 快乐的小菌菌
 * Description:
 */
public interface DepartmentSearch {

    /**
     * 查询企业数据
     *
     * @param code     匹配字段
     * @param pageNo   当前页
     * @param pageSize 每页数据量
     * @return 以字符串形式返回
     */
    @PostMapping("/department-search-provider/flipList")
    String flipList(
            @RequestParam(value = "code", required = false) String code,
            @RequestParam(value = "pageNo", required = false, defaultValue = "1") Integer pageNo,
            @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize
    );

}
